@import "../bourbon/bourbon";
@import url('https://fonts.googleapis.com/css?family=Raleway');

/*variables of colors*/
$blue: #092B40;
$lightBlue: #85DEF2;
$water: #52A5D9;
$sky: #5BB5D9;
$orange: #D96F32;

*{
  box-sizing:border-box;
}

html, body, main {
  font-family: Raleway,Sans-Serif;
  position: relative;
  margin: 0;
  padding:0;
  width: 100%;
  height: 100%;
  background-color: $blue;
}
input[type='text'] {
  -webkit-appearance: none;
  outline: none;
  border: none;
}
.wrapper {
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  width: 100%;
  transition: all 2s linear;
}

.fullHeight {
  height: 100%;
  transition-duration: 2s;
}

.white-text {
  color: white;
  text-decoration: none;
}

form {
  position: relative;
  display: block;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-left:0;
  padding: 0;
  margin-bottom: 10px;
  border: 4px solid $orange;
  border-radius: 20px;

  transition: all .25s ease .3s;
  cursor: pointer;
  &:before {
    @extend %def;
    top: 90%;
    left: 90%;
    width: 16px;
    height: 3px;
    background-color: $orange;
    border-radius: 1px;
    transition: width .15s ease .55s;
    transform: rotate(45deg);
    transform-origin: top left;
  }
  input {
    width: 100%;
    height: 100%;
    padding: 0 30px 0 15px;
    font-size: 14px;
    line-height: 38px;
    opacity: 0;
    background-color: transparent;
    color: white;
    transition: opacity 0.15s ease;
  }
}

.eks {
  display: block;
  position: absolute;
  top:50%;
  right: 0;
  z-index: 20;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transform: translateY(-50%);
  &:before, &:after {
    @extend %def;
    right: 5px;
    height: 2px;
    width: 2px;
    border-radius: 1px;
    transition: all .25s ease;
  }
  &:before {
    top:0px;
    background-color: $orange;
    transform: rotate(-45deg);
    transform-origin: top right;
    transition-delay: .1s;
  }
  &:after {
    bottom: 0px;
    background-color: $orange;
    transform:rotate(45deg);
    transform-origin:bottom right;
    transition-delay: 0s;
  }
}

form.open {
  width: 260px;
  transition-delay: .1s;
  &:before {
    width: 0px;
    transition-delay: 0s;
  }
  input {
    opacity: 1;
    transition-delay: .15s;
  }
  .eks {
    &:before, &:after {
      width: 15px;
      right: 12px;
    }
    &:before {
      top: 9px;
      transition-delay: .25s;
    }
    &:after {
      bottom: 9px;
      transition-delay: 0.3s;
    }
  }

}
.hide {
  display: none;
}

%def {
  content: '';
  position: absolute;
  display: block;
}
@include keyframes(new-item) {
  0% { opacity: 0;
    -webkit-transform: translateY(2000px); }
  80% { opacity: 0; }
  100% { opacity: 1;
    -webkit-transform: translateY(0); }
}